/**
 * 2015-12-18
 * StudentDao.java
 * author:sherlochao
 */
package com.sherlochao.dao;

import java.util.List;

import com.sherlochao.model.Course;
import com.sherlochao.model.Student;
import com.sherlochao.model.StudyCourse;
import com.sherlochao.model.Teacher;


/**
 * @author yinchao
 *
 */
public interface StudentDao extends GenericDao<Student, String>{

	//查询该学生所学的所有课程
	List<StudyCourse> listStudyCourseByStudentId(String studentId); 
	
	//查询该学生所选课程的课程名
	List<Course> listCourseByStudentId(String studentId);
	
	//查询该学生所选课程所对应的老师
	List<Teacher> listTeacherNameByStudentId(String studentId);
	
	//---------------------------------------查找老师所用的方法----------
		//通过老师id找到所有该老师教的学生
	List<Student> findAllStudentByTeacherId(String teacherId);
	   
}
